package com.alibaba.algo.exception;

import lombok.Getter;

/**
 * @author Fan.tianpeng
 * @date 2021/5/6 19:59
 */
@Getter
public enum SysGroupErrorCode {

    GROUP_CODE_ALREADY_USED(20900, "人员组编码已存在"),
    GROUP_NAME_ALREADY_USED(20901, "人员组名称已存在"),
    GROUP_CODE_IS_NULL_OR_OVER_SIZE(10030, "人员组编码为空或超过36位"),
    GROUP_NAME_IS_NULL_OR_OVER_SIZE(10031, "人员组名称为空或超过64位");

    private Integer code;

    private String message;

    SysGroupErrorCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
